package com.lirh.data.mongodbdemo;

import com.lirh.data.mongodbdemo.util.SnowFlakeUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class MongodbDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(MongodbDemoApplication.class, args);
    }
    @Bean
    public SnowFlakeUtil idWorker(){
        return  new SnowFlakeUtil(2,3);
    }

}
